<?php

/**
 * static components.
 *
 * @package    first
 * @subpackage static
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class adsComponents extends sfComponents
{
  /**
   * 
   * Composant des annonces bon plan
   * @param unknown_type $request
   */
  public function executeBonplan(sfWebRequest $request){
  	$this->aBonplan = Doctrine_core::getTable('Ads')->getBonPlanList(5);
  }
  
  /**
   * 
   * composant des dernières annonces
   * @param sfWebRequest $request
   */
  public function executeLastAds(sfWebRequest $request){
  	$this->aLastAds = Doctrine_core::getTable('Ads')->getLastAdsList(5);
  }
  
}
